<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width:300px,
            height:100px,

        }
    </style>
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">

    </script>
</head>
<body>

    <div class="box1" style="width:100px,height:100px"></div>
    <div class="box2"></div>
    <button onclick="show()">
        看现象
    </button>

    <script>
        window.onload=function(){
            alert("window.onload方法")
        }

        $(document).ready(function(){
            alert("2")
        })



        function alter(){
            $(".box1").html("<h1>标题</h1>")
        }



    </script>




</body>
</html>
